home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Educational / RasMol / Source / command.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-21  |  1.7 KB  |  82 lines

  1. /* command.h
  2.  * RasMol2 Molecular Graphics
  3.  * Roger Sayle, August 1995
  4.  * Version 2.6
  5.  */
  6.  
  7. #define MAXBUFFLEN   256
  8. #define MAXLINELEN   256
  9.  
  10. /* Format values are related to Tokens */
  11. #define Tok2Format(x) ((x)-349)
  12. #define Format2Tok(x) ((x)+349)
  13.  
  14. #define FormatPDB        1
  15. #define FormatMacroMod   2
  16. #define FormatGaussian   3
  17. #define FormatAlchemy    4
  18. #define FormatNMRPDB     5
  19. #define FormatCharmm     6
  20. #define FormatBiosym     7
  21. #define FormatMOPAC      8
  22. #define FormatSHELX      9
  23. #define FormatMol2      10
  24. #define FormatFDAT      11
  25. #define FormatMMDB      12
  26. #define FormatMDL       13
  27. #define FormatXYZ       14
  28. #define FormatCIF       15
  29. #define FormatCEX       16
  30.  
  31.  
  32. #ifdef COMMAND
  33. int DataFileFormat;
  34. char DataFileName[256];
  35. char CurLine[MAXBUFFLEN];
  36. int CurState,StateOption;
  37. int CommandActive;
  38. Long SelectCount;
  39. int Interactive;
  40. int FileDepth;
  41. int IsPaused;
  42.  
  43. #else
  44. extern int DataFileFormat;
  45. extern char DataFileName[256];
  46. extern char CurLine[MAXBUFFLEN];
  47. extern int CurState,StateOption;
  48. extern int CommandActive;
  49. extern Long SelectCount;
  50. extern int Interactive;
  51. extern int FileDepth;
  52. extern int IsPaused;
  53.  
  54. #ifdef FUNCPROTO
  55. int ProcessCharacter( int );
  56. int FetchFile( int, int, char* );
  57. void LoadScriptFile( FILE*, char* );
  58. void ResetCommandLine( int );
  59. void InitialiseCommand();
  60. int ExecuteIPCCommand( char __huge* );
  61. int ExecuteCommand();
  62. void ZapDatabase();
  63.  
  64. #else /* non-ANSI C compiler */
  65. int ProcessCharacter();
  66. int FetchFile();
  67. void LoadScriptFile();
  68. void ResetCommandLine();
  69. void InitialiseCommand();
  70. int ExecuteIPCCommand();
  71. int ExecuteCommand();
  72. void ZapDatabase();
  73.  
  74. #endif
  75. #endif
  76.  
  77. #ifdef NEXT
  78. extern char *CurPrompt;
  79. extern FILE *openResourceFile(const char *fn, char *path, int len);
  80. #endif
  81.  
  82.